#include <stdio.h>

int sum(int n);

int main() {
	printf("Sum of 1~10: %d\n", sum(10));
}

int sum(int n) {

	if (n == 1) {
		return 1;
	} else {
		return n + sum(n-1);
	}

}
